Call sys.exitfunc before exiting

Fixes some scripts that may rely on the atexit module to do cleanup
before exiting.
Bump version to 0.1.3