Local iOS Capacitor Plugin Method before Termination

I’m modifying the functionality of my Capacitor.js iOS app by making a local plugin in Swift.

I was wondering what the best way to listen / invoke the events in the AppDelegate.swift (pictured below) in my CAPPlugin?

I noticed looking at the source of CAPPlugin there is a shouldOverrideLoad method that I can use to execute commands after the application loaded, but I would also like to know when the terminate event occurs so that I can destroy some things that I make.