A BMAP/SM/1 queueing system with Markovian arrival input of disasters is considered. After a disaster arrival all customers leave the system instantaneously and a server is recovered during a random period of time. We consider both variants of accumulating and losing the customers arriving during a recovery period. Numerically stable algorithm for calculation of the stationary state distribution of embedded Markov chain is presented.