onclose a context onto the decorators scope