Cleanup in the wait function (more robust than atexit)
Bump version