**or**, you're welcome to redo this whole `ending` state shambles with something a bit more explicit; like using `this.ending` as a boolean only and adding an optional `this.endingCallback` as well.