Changed behaviour on close of last tab in window