Pass errors to the callback instead of throwing.