Invoke callback with error