Return values for outbound triggers

Programs executed by an outbound trigger should return 0 on success, and a non-zero value on failure.