Destroy the client after every usage

This patch should fix the random segmentation fault when using the
packagekit's node module.