added sys.exit on exception overflow (case user closed the browser but process still running)