injection factory cleanup