Cleaned up app active/resign handling.