How to Deal With Errors and Failures in LLM-Powered Applications