disconnect from server added, when not connected to the server you wont be able to write a message