Fix a bug causing redundant close() of recycled connection.