check for SIGUSR1 before using it, closes #3074

thanks @takluyver for spotting this
Merge pull request #3075 from ivanov/sigusr1-windows

check for SIGUSR1 before using it, closes #3074