Close the topics based on the belonging to groups criteria

Is it possible to close the topics that were created by users excluded from some groups?
For example, I know that the author of the topic will not answer the comments given to his topic, and that’s why I want to close all his topics.