We consider a single server system with infinite waiting room in a random environment. The service system and the environment interact in both directions. Whenever the environment enters a prespecified subset of its state space the service process is completely blocked: Service is interrupted and newly arriving customers are lost. We prove a product-form steady state distribution of the joint queueingenvironment process. A consequence is a strong insensitivity property for such systems. We discuss several applications, for example, from inventory theory and reliability theory, and show that our result extends and generalizes several theorems found in the literature, for example, of queueing-inventory processes. We investigate further classical loss systems, where, due to finite waiting room, loss of customers occurs. In connection with loss of customers due to blocking by the environment and service interruptions new phenomena arise.Keywords Queueing systems · Random environment · Product form steady state · Loss systems · M/M/1/∞ · M/M/m/∞ · M/M/m/N · Inventory systems · Availability · Lost sales Mathematics Subject Classification Primary 60K · 60J10 · 60F05 · 60K20 · 90B22 · 90B05