Added proper exiting in shovel for forking children, added test script to override process.exit in testing environment