Try at_exit hook