If you don't flush, the Kryo output can overflow.