Merge pull request #3 from SwedFTP/master

Re-instantiate socket to attempt TLSv1 without error.
minor bugfix, close socket before instantiating a new one.