Mongoose Close Connection

I have A Mongoose Connection and at some point in my program I need to close it. after logging the mongoose object several times, I have found that the following workd

mongoose.connection.base.connections[1].close();

Is There A Cleaner way to do this?

Try this instead:

mongoose.disconnect();