mongoose.disconnect when one cycle completes