fixed a bug that can cause an exception in case of sending data when the connection dropped already