Handling error in ivahd_init