Europe just tried to make a "pleasant deal" with Turkey about the refugees, giving Turkey a lot of money in exchange for them to close the border on their side.
But if Erdogan becomes a nuisance Europe can always go through the unpleasant path, close the border from our side and not give Turkey a cent.