in realbook/callbacks/debugging.py [0:0]
def on_train_end(self, logs: Any) -> None:
"""
Runs at the end of training. Stops the measurement thread and flushes any buffered
measurements.
"""
self.finished = True