Handle no ID and closed transactions