fix Socket#end
Merge pull request #6 from maraoz/fix/Socket.end

fix Socket#end()