Enhanced window.onerror and some other reporting