call all atexit hooks