LPS-43181 Simplify the fix

Validate the file name before the background process start, then we do not need to adjust the log level to hide the stacktrace.