How do you handle corner cases and error propagation in your automation scripts to prevent partial failures?