Add noOnError option to disable installing global onerror handler