Fix: Preserve state when app gets killed due to resources constraints

Let the app recreate itself and restore it's state selectively to avoid
NPEs