Close connection

after execute, close connection (Connection Refused)
Can change the default timeout of socket and connection
Can change the default timeout of socket and connection and change version
Correct the parameters order
Use the parameters, not create a new parameters
Merge pull request #2 from oassuncao/master

Close connection