log gin of caught exception