Bug #022.
Ensure tracks file is properly closed on application exit.