Re: Orphaned Sessions
After reviewing the code is it neccesary to do .WriteLine("close") to terminate the session with the host or should ending the WinSCP .NET process take care of it?
Ending the WinSCP process properly should close the session correctly. Note that WinSCP is not .Net application, but it should not make a difference for this purpose.