Don't hardcode the destination host, and don't continue after failure