It is very important to know how to exit from Prolog. Simply type halt. at the Prolog prompt or select Halt from the File menu: