Refactor, try to use render handlers to chain render processes.
Try a new trick: monitoring file change at intervals. File doesn't change = render is finished. This is potentially platform-dependent, needs more testing.