Don't try to register unsupported signals

For example SIGQUIT isn't supported under Windows, so we should check if the given signal is valid...