# In case of an error in the robot executed from the orchestrator, how can I make it stop execution after some time has passed?

We have noticed that sometimes an application may not respond, causing the robot to wait for elements. We have considered exceptions, but even so, it does not complete its execution when a problem occurs, and it gets stuck in an infinite loop, which prevents the execution of other processes.

##### Post Metadata
- Posted at: over 4 years ago
- Author title: Consultor RPA en AUTOMATION CONSULTING ROBIT
- Net upvotes: 1


## Comments
### Comment 1

Errors can be caught with TryCatch, IF, and with them generate logs. You can indicate to the robot which procedure to follow in case any of these validations determine an error, stop it for the time you consider prudent, and subsequently execute it again.

##### Comment Metadata
- Posted at: about 4 years ago
- Author title: Engineer, Rocketbot Certified Bot Builder Expert RPA




## Related Product
[Rocketbot](https://www.g2.com/products/rocketbot/reviews)

## Related Category
[Robotic Process Automation (RPA)](https://www.g2.com/categories/robotic-process-automation-rpa)

## Related discussions
- [How well does Trello scale into a larger team?](https://www.g2.com/discussions/1-how-well-does-trello-scale-into-a-larger-team)
  - Posted at: over 13 years ago
  - Comments: 6
- [Can we please add a new section](https://www.g2.com/discussions/2-can-we-please-add-a-new-section)
  - Posted at: over 13 years ago
  - Comments: 0
- [Quantifiable benefits from implementing your CRM](https://www.g2.com/discussions/quantifiable-benefits-from-implementing-your-crm)
  - Posted at: about 13 years ago
  - Comments: 4


