Using die() directly will send the error to STDOUT, instead of to STDERR and will exit with status 0, rather than status 1.

Better to use `WP_CLI::error()`.