Catch SIGQUIT for cleanup

Handles SIGQUIT (ctrl-\\)