Handle error for service lookup