Replaced deprecated delete_context() with context_helper::delete_instance()