Fixed issues:
* fixed issue which caused client to stop sending messages after connection restore (connection restored after error on sockets)