If any warmonger civ settled a city 4 tiles next to your capital, it's pretty guaranteed that he will eventually DoW with a carpet. Moreover, Shaka always DoW when he get impis or before, Suleiman when he get Janissary, or even before. Even before the DoW, you might get citadel bombed so might as well take him out as soon as possible.