disconnect current connection before establish a new one