exit process on error.