repl emits 'reset' event when context is reset