Merge pull request #3 from SwedFTP/master

Re-instantiate socket to attempt TLSv1 without error.
minor bugfix, close socket before instantiating a new one.
Merge remote-tracking branch 'remotes/upstream/master' into bitcoinbot