added catch all exceptions print error

Signed-off-by: Nicholas Lum <nicholaslum444@hotmail.com>