Inital fix for v8 GC crash
Now the entire package header is writen including the first file chunk