simple window.onerror handler