Change SIGHUP to SIGINT to support Windows

Fixes #846.