Test for POSIX style exit handling
Implement POSIX style exit handling