Set non-zero exit codes when errors happened