Make sure generated files are closed before we try to use them
Spell out the load order of rake tasks