After an investigation yesterday, this is caused by the charm taking more than 30 seconds to run stop/remove/-relation-departed etc hooks during pod termination. Although this looks like a regression, the behaviour was already there but was unfortunately hidden by another bug.
In the short term the plan is to increase the terminationGracePeriodSeconds for the pod to a higher number, this isn't a great fix, but for now may help with mitigating this.
After an investigation yesterday, this is caused by the charm taking more than 30 seconds to run stop/remove/ -relation- departed etc hooks during pod termination. Although this looks like a regression, the behaviour was already there but was unfortunately hidden by another bug.
Ultimately this will be properly fixed by a fix for https:/ /bugs.launchpad .net/juju/ +bug/1951415 which work is ongoing.
In the short term the plan is to increase the terminationGrac ePeriodSeconds for the pod to a higher number, this isn't a great fix, but for now may help with mitigating this.