ScanFiles(): Avoid random error and display a message