Close REPL process when closing tab.