Hotfix: better ssh exit code handling