Added exception printout