Unloading the script and cleaning up the assembly.
After closing the form the scripts are unloaded from the CS AppDomain, the assembly is cleaned and the temporary DLL (%TEMP%/SDL/TRI-GUID-.....DLL) is deleted.
The following diagram illustrates the unloading process