http api: disable atexit