Closed each cursor after use