bad breakage when sys.stdout is closed

Issue #1 resolved
Ronny Pfannschmidt
created an issue

it should fail more gracefull, like cpython

see https://bugs.pypy.org/issue1098