Click the triangle next to the gear and then File Exit: