Add error checking callbacks to bindings