Improved default exception for CLI

This prints out all the details and a stack trace from any exception
caught while running the ApiCLI. This is opposed to the previous
output which was simply the exception message.