Some commands not returning the correct exit code.