Fixed daemon quitting from HUP.