End retrieval if there are no documents in search result
Remove messageBroker references