Fixes compilation error in Notifier.h and link errors in ThreadEventQueue.cpp
If a file descriptor is being closed, we need to permanently disable any Notifier and remove it from the event loop. This method removes the notifier and disables it so that the EventLoop does not use a invalid file descriptor.