Call commandDone() when exiting modes.  This is to ensure we return to
InsertMode after hitting `i<c-o>:(some command)`.  That is, <c-o> in
InsertMode jumps to NormalMode for a single command.  But if the user
enters ':' to move to command-line mode we still want to return to
InsertMode after that command-line command has completed.