Changed PID file names and deleted files after processing.