Fixed problem with trying to destroy progressDialog after the activity was already finished.