public void Dispose()
 {
     server.DisconnectAllClients();
     server.Dispose();
 }