Fix a bug to make a chatter disappear when a connection is lost
Add back the code of opening a message listener in Main.java