CliHelper to handle errors in uniform manner