Allow exceptions as well as non-zero return when checking for affinity commands