[added] app.destroy() : gets called when the app is getting closed.
[improved] all app-methods are secured by try-catch-blocks now. When the initialization of an app throws errors, the app is getting removed.