close write conn