Prevent stuck progress dialog