Update install script to handle errors better.