Mark transition as finished and execute callback.

def _finish(self):
        """Mark transition as finished and execute callback."""
        self.finished = True
        if self._callback:
            self._callback(self)
        self._finish_event.set()