refactor(cli): remove redundant code from catching exceptions