SYSE.33:4.4 - Provide isolation, lifetime and assistance
Give each independent attempt enough isolation to protect the meaning of its work. This may concern files, database rows, queues, network names or whole resources. Shared use is possible when the interference conditions are understood and controlled.
Set an appropriate lifetime and identify who is responsible for maintenance, assistance and decisions about retained information. A temporary environment must not disappear in the middle of promised work merely because a default expiry was reached. Conversely, indefinite retention of unused environments consumes resources and can preserve unnecessary access.
Limit cleanup to the resources and data that belong to this environment and that you are authorized to remove. If ownership or retained-data consequences are uncertain, return the uncertainty before deleting. A broad naming convention alone is not proof that every matching resource belongs to the current attempt.