Handle TERM, QUIT and ABRT signals

Gracefully exit child processes in the case one of the above signals is
received.