Efficient Plan Adaptation through Replanning Windows and Heuristic Goals