disconnect serial when open serial config dialog