RUBY-788 Check pool accounting after socket error