code: def on_trial_remove(self, trial_runner, trial):
          
          if trial.status is Trial.PAUSED and trial in self._results:
              self._completed_trials.add(trial)
docs: Marks trial as completed if it is paused and has previously ran.