Make InspectableMockServer register request before holding it
Revert "[To be reverted] Temporarily switch to synchronous socket for server connection"

This reverts commit c40f03250ffa111cc35ca40056d449a26ce2bcfc.
Before closing a session, wait for current requests to the store to be completed