Added methods to save modified editor files on close, on run, on build and on individual tab close.