Add close() to client
Merge pull request #4 from changbl/working

Add close() to client