Save and close editor