#410 Artifact cleanup extension

Also, this is a framework level change, and can be done later as well. But, if we have a lot of usages of allPluginsOfType, then it'll be hard to change later, if needed.