This opens an event loop which creates race conditions on m_context if we receive a deactivate.
mentioned in commit 9edda769