public void DestroyDatabaseManager() { StopClientMonitor(); lock (Clients) { for (int i = 0; i < Clients.Length; i++) { try { Clients[i].Destroy(); Clients[i] = null; } catch (NullReferenceException) { } } } Server = null; Database = null; Clients = null; AvailableClients = null; }