I saw that there are multiple examples of unit tests that test the workflow by waiting until the process count is 0. However, the workflow can stop due to several reasons including failure. I wonder what the right way to monitor and handle workflow execution failure?