Print a new line before setting the class file to null. This ensures the ending } is written.