Changed the timing of 'exit' is performed within the BAIL_OUT.

Execution of BAIL_OUT also be able to test in the stream.