Added support for on error, reset automatically.