Made socket actually close.