wrong return type from mongosessionmanager