Changed do script so that a compiler failure stops the rest of the script from running.