void Cleanup() { if (!cleanedUp) { cleanedUp = true; client.Dispose(); } }
void OnApplicationQuit() { // DONT FORGET TO DO THIS client.Dispose(); }