Adding a Finalizer Before NoteHttpServer Shutdown

Hi. I'm trying to figure out how to add a finalizer that runs before the NoteHttpServer shuts down but i'm not sure where and how to go about this. Can someone help?
Was this page helpful?