Fixed error in atexit._run_exitfuncs.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
Merge pull request #3 from mkouhei/error_in_atexit._run_exitfuncs

Fixed Error in atexit. run exitfuncs in travis-ci.