bugfix against IOException: may not close the jar output stream after writing of the class; instead the stream is closed in the end, through a call to tearDownJAR()

I wonder how this could ever have worked!?