Figma comes to mind. Perhaps the best approach would be to allow the user to define additional auto-close rules manually.