Fix crash on exit.
If we do not delete ApplyProgressDialog, then it later emits finished which in turn attempts to scanDevices even though kpmcore helper is already stopped and QCA private key is deleted.