Handle corrupted pickles more gracefully