added logging information about the exception