Handle occasional errors with example script