added flag indicating whether the polyfill is in use.
connection to database is no longer closed when a transaction aborts / fails.