A function that handles errors that blow up in the CLI.
Error to be handled.
A promise that resolves with the error passed.
A function that handles errors that blow up in the CLI.