cater for unset exit code