move close progress popup inside try