Saving locations on instance exit