Cleaning up before changing the project