remove disconnected connection from the pool

log disconnects

test

test

test

test

clean up
Merge pull request #206 from will123195/handle-disconnect

remove disconnected connections from the pool