Diagnostic step 1
Refactor the workflow: remove long-running network calls from ExecStop. Instead, have ExecStop trigger a short, idempotent marker (e.g., create a file or send a systemd message) and let a separate timer/service perform the rotation asynchronously (systemd oneshot timer).