Watching an entire process for an error message due to the server going down

If you use the REFramework, this will handle errors by taking a screenshot when they occur. The process ends cleanly and successfully even in the event of errors. More on the REFramework can be seen below.