frontend: change how exit is done