Delete probe on exit correctly.

The server sided probe had all the code to safely detach from the
process. When instructed so by the client, or in in-process mode it
would detach correctly, but for the out-of-process mode the detach
just wouldn't get initiated.

Now the detach is connected to QCoreApplication::aboutToQuit.