close log files before exec'ing pciescanportal