Don't send messages when not connected.