Close mongodb cursors after use