support ON_ERROR_STOP