close the runtime on exit

Close the runtime when closing the snoop window.