Added close file in StatsLogger.
Removed unused import in BooleanIndividual.