hooks/fancy: handle_output: trap exit signals.