Fixing potential memory leak (on older systems)
Adding asynchronous extension registration methods