just double checking: `check_resource_error` raises an exception and stops the computation, right?