Run callback if there's an error.