Below is the stack trace of the .Net windowsform application.
"Procedure:frmmain_unload, Program getting closed , StackTrace:
at System.Environment.