You save by going through doors or returning to the spawn point. You can exit by interacting with the spawn point or just closing the game manually.