When leaving a project, there isn't anything specific that you need to do. Some clients will give you a debrief to remind you that you are still bound by the Official Secrets Act, some (in my experience!) barely even notice that you have left.
You typically then have a year to find another SC cleared role. When starting the new role, they will ask you if you have had clearance before, and who had it (this may occur before interview or at the interview stage as well). The new client will then port your clearance over to the new role, if necessary - for example from MoD to the Home Office.
Your SC then runs until either (a) a year after you leave the new role; or (b) until the expiration date, whichever comes first.
When taking on a new role, some clients may require you to go through an SC renewal process anyway, or even apply for a different level of clearance. For example, a colleague of mine had to apply for a lower level of clearance (CTC) than he already had (SC) because the new project didn't really trust the old department to have done the checks properly!! Also, you may still need to apply for SC even if you are SC cleared because of some individual project requirements.
HTH.