invalidate connection handle rather than closing database inside cleanUp()