Because ByteArrayInputStream is hard to make an exception on close.