Add error handling to customer creation