fix mongo connection not close