def stop(win, ctx):
    """Stop and unload any active Inspectors for the given *ctx*."""
    if hasattr(ctx, 'inspector'):
        win.unbind(children=ctx.inspector.on_window_children, on_keyboard=
            ctx.inspector.keyboard_shortcut)
        win.remove_widget(ctx.inspector)
        del ctx.inspector
