and StringIO objects now raise ValueError when the object has been closed. Patch by Alessandro Moura.