Adjustment situation when script is on error and don't set error output and status correctly.