Closing mongoose connection