Closing last tab kills application. Fixes bug #229
Merge branch 'master' into xuggler