modified sync engine constructor to avoid memory leak, and count if still active node exists
delete temp file