I have implemented the Quit mode.