Backport #309 from jssjr/add-hup-signal-handler to 0.9.x

See #309