Only return when the output file is closed.
Merge remote-tracking branch 'origin/master'