Cleanup ordering and logging in client.close()