This is a workaround for the rare issue where a process holds a file handle to the application directory.
This change is