change it so if a tab if a tab need to be closed because another tab is
being made it wont make the new tab if the tab did not close
commited by: cjwolf