vici: Handle closed sockets in the Ruby gem