test: Use 'close' event in simple/test-repl-timeout-throw