Only open port if OK was pressed on the connection dialog.