This fixes the problem when writing the file for the GodClass Smell,
which was not closing the file, and for that reason the file was empty
with a 0 kb size