Added rescue to prevent crashing on Windows

'unsupported signal SIGUSR1' occurs when running on Windows. SIGINT is supported in Windows and the rest would be ignored.
Merge pull request #1494 from Jellyfishboy/master

Added rescue to prevent crashing on Windows