Flush project to track changes when leaving