add quit case in core