proper saving when closing opening projects