Fixed segfault

Attempted to send message on uninitialized connection