Auto report

Generate a report automatically in case of an exception