Added try catch to progress dialog fragment