handle connection loss to mongodb