SERVER-10276 Improve error handling and consistency of mutable library