Working quit button
Doc and TODO