Properly handle ssh's return code.