case with leaving command