Adding error handling in IP Adapter