update cli.py. catch error during action processing and json creation
update cli.py. catch error during action processing and json creation

pauline-jastec/ltuengine-python-client,yallusse/ltuengine-python-client