Return errors in callbacks