iErr=ehMail(WS_CLOSE,0,NULL); if (iErr) {ehLogWrite("Errore chiusura server %d\n[%s]",iErr,ehMailError(iErr));}