fixed UI quirk when re-opening a closed connection on submit of a message
revved version