Pack it in
British slang for desist or refrain from doing something dates from the 1940s and derives from the earlier sense of packing up i.e. gathering things together before leaving.