An adaptive logic for rational closure