remove pid and log file