Error checking for crashes. Previously, the mainscreen was started regardless of whether the background task completed. That was the reason for the crashes. Fixed that bug by starting the intent only after the background thread has completed. Not required while loading data from cache, because we don't do that in the background.