remove at_exit handler