- don't try to reconnect if connection has been closed
- emit signal on established connection instead of sending empty message