Fixes for the flawed queryExit/queryClose API.
Fixes for the flawed queryExit/queryClose API.

svn path=/trunk/kdepim/; revision=211278

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi