Classroom monitor: made it fail gracefully when it is unable to establish a websocket connection.