testing how to avoid the null pointer exception on death of the app.
Settled on sys.exit