improve error handling for mongo example