Make sure that files are fully written before publishing them in desktop grid.