check for SIGUSR1 before using it, closes #3074

thanks @takluyver for spotting this