Process exit with exit code, see #5

Extending @mattmarcum PR (#5) to contain exit code