UNC: fixed crash when orientation changes during app loading process
Dismiss progress dialog as soon as possible. Doing it in onCancelled of
AsyncTask might be too late as it may happen after activity has already
been destroyed.