tracehook: exit