Prevent cursor from causing global reference leaks.

To fix this the ContentQueryMap needs to be closed
when onStop is called so any global references can
be reclaimed.