Clear up socket in teardown