Exit if a command has error