added cpp snippet wrt unit test abort handler