don't send message if connection is broken