Merge "a dbobject is closed twice and that causes incorrect warnings"