Disallow writing after close.