am 99227cf2: am 0e175781: Fix a whole bunch of monkey bugs by making sure that the adapter doesn\'t hold on to and tries to use a closed cursor.

Merge commit '99227cf296503e137122207601eb59be55f119ce'

* commit '99227cf296503e137122207601eb59be55f119ce':
  Fix a whole bunch of monkey bugs by making sure that the adapter