I know earlier you mentioned that we need to do this on both `commit` and `close`, but looking at the code I'm not actually sure why, since it seems like there will always be a `close` before each `commit` (since `this.close()` is called before we dispatch the commit message). If that's the case, it might make sense to just do it on `close` to avoid doing this twice.