}
} catch (Exception e) {
if (writer != null) {
try {
writer.close();
} catch (Exception e2) {
// do nothing
// Remove the generated .java file
new File(javaFileName).delete();
throw e;
} finally {