End with SIGHUP to properly shutdown

Following the keyboard interrupt closing of the script if run foregrounded, we'll SIGHUP rather than SIGTERM on shutdown. That way, we'll close file handles properly.