fix iterator in on-demand sqlobject: connection leak when query crashes
fix iterator in on-demand sqlobject: connection leak when prematurely closed
fix iterator in on-demand sqlobject: connection leak when mapper crashes