RUBY-545 only checkin socket if it was not provided