Перестать делать means that you were doing something and you have stopped doing it but you haven't completed it
Закончить делать means that you have finished doing something w/o specifying if you...