Add test to verify behaviour of message sent after core stop
Do not sent messages in an encrypted chatroom if the encryption engine is not available
Postpone destruction of encryption engine until after ending chat message task when uninitializing the core