close #5. When exiting, the properties are saved now