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