rename termhandler to exithandler