Reconfigure signal trapping.

Exit gracefully when sent TERM