Add MVM_platform_thread_exit