handle exceptions - print the exception object