Fix for closing the last not minimized tab