Added missing SIGHUP handler