[Fix] After writing .classpath and .project, the XMLWriter did not
close.