SCOMMDLG: fix open/close port issue

Signed-off-by: fjling <jialingfu@hotmail.com>