exit with status code 1 if we don't go through the normal exit paths

Hello @dpup, @x-ma, 

Please review the following commits I made in branch 'nick-exit'.

8a9cd7f0be5b4cc77aeec5a4e194e90510b04690 (2014-10-16 20:21:32 -0400)
exit with status code 1 if we don't go through the normal exit paths

R=@dpup
R=@x-ma