Add AbortNode() call and fprintf
Merge pull request #77 from faizkhan00/add-detection-

Add AbortNode() call and fprintf