added a client.close to close mysql session