switch back to master at the end
handle ssh timeouts