public void Disconnect() { using (DataServer database = new UserServer()) { database.Disconnect(); // Should be ok to disconnect an already disconnected database. database.Disconnect(); } }