Remove the tab if the user cancels the new connection window
Fix newConnection window is sometimes not displayed