[KARAF-2623] Improve exit code for SSH/client