resetting thread local connection if recovering from a failed delivery