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.
Merge pull request #1848 from venkatgry/patch-3

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