More handling of recoverable exceptions.
Change how log position and transaction id are captured, to ensure they are in-sync with each other.