Fixed bug when opening file.
Added confirmation when closing a REPL tab.