Added graceful shutdown on SIGHUP

According to my memory, it is needed so we can close keepalive requests on a graceful exit