Implemented disconnection message

- Also fixed various disconnection bug as well as chat entries bug.