Rockets avoid late-game meltdown, finish off Celtics in Boston