Handle exceptions raised by application; clean-up of cli.py; explicitly call main with sys.argv

Signed-off-by: Tomas Hozza <thozza@redhat.com>