or send "." to the server to close the connection from server side.