Make sure all client threads are stopped when KeePassRPCServer is
terminated. Fixes luckyrat/KeeFox#169.