window.onerror handler