[runtime] Add a wrapper around atexit () since it is missing on some android versions.