#4365: FileLoader improvement.

- Added method to manually close the file.
- Integrated it into destructor.