empty the read buffer before returning a cached connection for new usage

also close the filedescriptor if no pool is found