Change AutoClose plugin (Townk for Karl Guertin)

While Townk's one avoids placing a closing char where it shouldn't be,
Karl's one allows to exit faster from a group of consecutive closing chars.