Closing a mongo connection instance

For instance, i have a server side code that inserts collection, is there a way to close the connection after using it like a db.close() of some sort?

thanks