shutdown correctly before mainwindow exists.
Update BUGS/TODO/notes
Improve interrupt docs