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