freenet/fred-staging — pull request #237 by toad (2014-06-21 16:06:40+00:00)
Title: write() must check closed, or it will NPE here, but in any case it must ...

write must throw an IOException if already closed, and must not NPE (it would here). Fix regression introduced by Bombe's don't-throw-patch.