Force rd_thread_poll() exit of thread is exiting, even if there are pending events