Asynchronous app state handling.