0.1.2
pull out socket teardown into own method