@Override
 public void doRun() {
   RecoveriesCollection.StatusRef statusRef = onGoingRecoveries.getStatus(recoveryId);
   if (statusRef == null) {
     logger.trace(
         "not running recovery with id [{}] - can't find it (probably finished)", recoveryId);
     return;
   }
   try {
     doRecovery(statusRef.status());
   } finally {
     statusRef.close();
   }
 }