Close MongoDB connection when river is closed