Allow to decide what should be done after closing last tab, fixes #53