Added defensive code for a fringe case when the connection leased from the pool gets immediately closed by the opposite endpoint