Do not discard socket resource after closing it
Merge pull request #10 from clue/close-resource

Do not discard socket resource after closing it