@Override
 public void onCloseOwnerConnection() {
   // mark the owner connection as closed so that operations requiring owner connection can be
   // waited.
   ownerConnectionFuture.markAsClosed();
 }