Add some script robustness to fail faster.