Adding error handling to your applications