reset(): restore onerror

mocha uses .onerror to report uncaught exceptions.

cc @lancejpollard