protect scriptlet from setting error status