Properly finish editing.