Select the Apple icon at the top left corner of your screen. Then, click System Preferences > Apple ID. In the Apple ID window, select the Overview tab and then click Sign Out at the bottom.