add end() method for closing client
0.0.4