Update MustBeClosed
to handle IO decorators.
#4603
+212
−232
Merged