Avoiding an OS_ASSERT that happens when you close PAT with the cloud running. @kbenne, maybe you know of a better way to fix this?
Code style, and fixing a missed Qt::QueuedConnection.