Test pre-condition can leads to race-conditions. Also current code was hiding SMB error.
Attach a file by drag & drop or click to upload