add message to html when connection closed