Add cleanup code  for SCILAB  (code  from tcl.cxx)