Close UI windows on /quit

fixes #296
Merge branch 'master' into gmail