Handle migration failures gracefully