Remove faulty sys.exit