OfflineMessagesManager.getMessages() does send request before collector is set up and could leak collector
Description
The collector is set up after the request has been send, which could cause the collector so miss some responses. Also if sending the request causes an exception, the collector is not canceled.
The collector is set up after the request has been send, which could cause the collector so miss some responses. Also if sending the request causes an exception, the collector is not canceled.