Close the parent context in DefaultContextClosureHandler

This addresses #810 by closing the parent context in `DefaultContextClosureHandler`, if there is any.