How do I write an exit handler for an F# application?
Use AppDomain.ProcessExit
(http://msdn.microsoft.com/en-us/library/system.appdomain.processexit.aspx):
System.AppDomain.CurrentDomain.ProcessExit.Add(fun _ -> ...)
Use AppDomain.ProcessExit
(http://msdn.microsoft.com/en-us/library/system.appdomain.processexit.aspx):
System.AppDomain.CurrentDomain.ProcessExit.Add(fun _ -> ...)