App update crash, invalid host crash

Fixes a couple of bugs:

1. App activity timer data wasn't being retained in memory, which could cause crashes in certain app upgrade scenarios.
2. If you specify a login host that responds, but isn't valid, you can end up in a state where you can't login through a valid login host, or an app can crash as well.