Added OnError virtual method to the base Workflow class.