colse Debug mode