Improving error handling in saves and loads