server_kill_window can modify the RB tree so don't use RB_FOREACH, fixes