def METHOD_NAME(self, service: beat.Service) -> None:
    """Install a `SIGTERM` + `SIGINT` handler saving the schedule."""
    def _sync(signum: Signals, frame: FrameType) -> None:
        service.sync()
        raise SystemExit()
    platforms.signals.update(SIGTERM=_sync, SIGINT=_sync)