Close socket and sendall data
Merge pull request #10 from Eyepea/master

Close socket and sendall data