Improve error handling in LSM merge finalizing.