Fix incomplete
Wait for the output stream to finish writing before initiating parsing.
The first time the registry file is downloaded, parsing might begin before the buffer is completely flushed to disk.