Kill child process if SIGTERM received
Clear sigterm handler after first run
Non-zero exit status should indicate failure
Wait for child process to die, a second sigterm will kill the process
Merge pull request #2 from nijotz/master

Kill child process if SIGTERM received