Explicitly close connections

The garbage collector works OK with the pre-forked model but it is
causing trouble in sftp-cloudfs because paramiko uses threads.

It won't hurt the ftp server if we're close these though.
Compatibility for swiftclient < 1.9.0