replica set test fixes - close connection on major exception

RUBY-676