Simplified sshKeyDist shutown, but also ensured no hangs on the GUI thread