create a catches decorator to handle exceptions

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
use the new decorator in cli.py's main entry point

Signed-off-by: Alfredo Deza <alfredo@deza.pe>