Cursor finalized without prior close() warning. what does it mean?

Exactly what your warning says, you have some cases that you didn't use

cursor.close();