close scratch box when leaving omni complete