Save all data to prevent program loss.