JBIDE-18842 CordovaSim: Implementing app.appexit support