Reseting things when closing a project