fix loop unlooping on SIGHUP

As SIGHUP is being handled in the same way as SIGTERM we should unloop event loop on this signal. If we don't do it it leads to server hang on SIGHUP.