is ignoring onerror ok there? maybe we should at least log the error.