Should this one set onerror to null instead? What's the purpose of setting these to null in both callbacks?