I would be interested on running the project's Build command (edit: on exit), but only on a per-project setting. (Some of my text, but not code, projects, have a build command, which basically just commits all changes to the repo. Just so I can go back in time, in case I delete something useful my mistake.) Any thoughts on how I would implement this?
The @adzenith's method won't work, because it has to be per-project. (Also, I've disabled Ctrl+Q. I use my WM/OS functionality to close sublime.)