Fixed SIGHUP handler. Cleaned naming.