Added graceful shutdown on SIGHUP

This indirection is probably unnecessary if on_channel_close doesn't use the channel, and all it does is call check_shutdown_gracefully.  It should probably just call check_shutdown_gracefully instead.