Added graceful shutdown on SIGHUP

> 79 chars