Handle error.