Fix cleanup of FTPSession

Must not call Deinit before destructor
Merge pull request #72 from tbeu/patch-cleanup-infinite-wait

Fix cleanup of FTPSession