Save project before logout.