Forgot to close socket--fixed.