Fixed issue with removing of network connections though connection is active.

Issue# Connections were removed from the pool though connection is active which is leading non-reference binary connections.