Safe stop implementation