Allow return status to be specified using quitWithStatus.
Merge pull request #788 from eightyeight/return-status-code

Allow return status to be specified using quitWithStatus