Remove default onerror handler in onerror2 event

Closes #7