at_exit hook & config dump