Prevent visitor message when disconnected

The text input is simply greyed out if the connection is broken. It works, but better error handling should be implemented in the future.