A person should not interrupt his davening of Shemone Esray even if a king greets him or a snake is crawling next to him. This, of course, is assuming that neither of these are life threatening situations. If the king will kill the person if he does not respond or the snake is poisonous, one is certainly allowed to interrupt.