KnowledgeWorks is integrated with LispWorks so you cannot exit from KnowledgeWorks independently. You can close individual KnowledgeWorks windows by choosing Works > Exit > Window . You can exit LispWorks by choosing Works > Exit > LispWorks... from any KnowledgeWorks or LispWorks window. If you have any unsaved edited files you will be asked whether you wish to save them. There will be a final confirmation before KnowledgeWorks quits.
KnowledgeWorks and Prolog User Guide (Unix version) - 6 Dec 2011