Fixed error in atexit._run_exitfuncs.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>