replaced errordlg in OpenStimSerial