close method
Closes all instances of singleton if they implement Closable Cleans up the singleton map.
Implementation
@override
void close() {
for (var instance in taggedSingletons.values.toList()) {
Closable.closeWith(instance);
}
taggedSingletons.clear();
}