add File > Exit

I did a hack by calling System.exit at the end, because I didn't find which thread (or other cause) block the JVM end.

The change in gitignore could also be done into MLProject (I didn't fork it => no PR)