close method
Mark the end of the active period for the current thread and Scope, updating the ScopeManager.active in the process.
NOTE: Calling 'close' more than once on a single Scope instance leads to undefined behavior.
Implementation
@override
void close() {}