Should be `endEditing`;

`openDocument`, `closeDocument`
`startEditing`, `endEditing`.