Don't crash because of missing SIGHUP on Windows

Fix #229.