bugfix: files class files were kept open by the application