combining exit methods so they get called and adding ability to pass onExit from parent to child process
Merge pull request #115 from thoop/master

combining exit methods so they get called and adding ability to pass onE...