def METHOD_NAME(self, *args):
    # Tear-down process
    self._done.set()
    with Path(self._logfile).open("a") as f:
        f.write(
            f"# MRIQC Resource recorder finished "
            f"{datetime.now().strftime('(%Y/%m/%d; %H:%M:%S)')}",
        )