Split init_new_context and destroy_context