hooks/fancy: handle_output_{create,destroy}: fix detaching output handler from stdout.