fix send dmtf and add check end call