Fixing the never vanishing progress dialog
Improving error handling and progress monitoring in search method
Removing unused import