trying to resolve debug file concurrency

not a critical issue, the try catch does not impact program workflow,
only concurrent writes to the file do now work :( is for debug only so
is acceptable for now