CLEAN_UP signatureThis modules provides hooks for actions (e.g., closing files) to be performed at various important points in the ML process, such as at process exit.
signature CLEAN_UP
datatype when  = AtExportML  | AtExportFn  | AtExit  | AtInit  | AtInitFn
val atAll : when list         
val addCleaner : (string * when list * (when -> unit)) -> (when list * (when -> unit)) option         
val removeCleaner : string -> (when list * (when -> unit)) option         
val clean : when -> unit         
datatype when
AtExportML
AtExportFn
AtExit
AtInit
AtInitFn
atAll
          
addCleaner (name, when, f)
          
w           in the when list occurs,           f(w) will be called.           If there was previously a cleaner (when',g) associated with            that name, then SOME(when',g) will be removed and            returned, otherwise NONE.     
removeCleaner name
          
NONE.     
clean when