Fix #1336: Several database adapters don't clean up connection and resource properties on shutdown