This commit adds a test to ensure that during a signal emission, if a signal handler gets disconnected, it won't be run, even if it would have run before the disconnection.