Make sure connection reference is removed after the connection is returned to the pool