Hi Sim,

Terminate without the "Gently close" option active KILLS the app. Not a
good idea and might cause a crash in your own app.

You should use the "Gently close" option and let your own app handle this
standard event so it can close all databases etc. and then terminate itself.