private void ChatroomIHM_FormClosing(object sender, FormClosingEventArgs e) { thread.Interrupt(); try { topicForm.CloseTopic(clientChatRoom.Topic); clientChatRoom.Quit(clientChatRoom.User); clientChatRoom.Disconnect(); } catch (IOException ex) { Console.WriteLine(ex + "probleme connexion"); } }