Prevent HTML error pages being spewed for CLI.