Smoothly shutting down during development testing

I’m working on building an integration with the Qolsys IQ Panel.

It’s very fussy about having its TLS socket smoothly closed during shutdown, and needs a panel reboot if it isn’t.

Is there any way I can smoothly shut down my app when running using homey app run such that my onUninit handlers are called? CTRL-C just blows everything away which is… painful.

I don’t think there is a way. This has been a long-standing issue (LOOK THERE, DASHBOARDS!!1!).