Loss probability in a finite queue with service interruptions and queue length distribution in the corresponding infinite queue