Fixup error handling and line wrapping.
Update LSM compact to work with shared merge threads.