This opens an event loop which creates race conditions on m_context if we receive a deactivate. (cherry picked from commit f509f34d)