stylistic changes to disconnect.rb