@taylorleese Seems that closing a ByteArrayOutputStream has no effect.  http://stackoverflow.com/questions/2330569/closing-a-bytearrayoutputstream-has-no-effect