...
Also note that on the Windows platform, attempts to delete open files fail silently. See FIO07-J. Do not create temporary files in shared directories for more information.
There is a similar rule for releasing concurrency locks: CON15-J. Ensure actively held locks are released on exceptional conditions.
Noncompliant Code Example
...