Error handling script changes for OWL