Don't call quit in an at_exit hook.