don't close if got Eof durind readBytes(ba);

fixed for more compatibility with flash api