allow data to be saved after app exits