Added onError to PlayRunHook, which is called whenever play run has an exception.