You can return a process exit status to the Operating System when LispWorks quits by passing a status value to the function quit . For example:
quit
(quit :status 42)