Make error callback to optional argument.