commander: use cortex-command-errors to handle errors; related to #291