Handle TERM, QUIT and ABRT signals

Gracefully exit child processes in the case one of the above signals is
received.
Merge pull request #4 from benjamin-surma/master

Handle TERM, QUIT and ABRT signals