Make sure all client threads are stopped when KeePassRPCServer is
terminated. Fixes Github Issue #169.