fixed close of logdialog