Added close connection
Merge pull request #275 from Lerogero/master

Added close connection