Move usage into a const, explicitly close files.