Israel's leaders needed a mechanism to discourage desertion and draft-dodging in the Israel Defense Forces. A stay of exit order issued by a court prevents an active-duty soldier from leaving the country. It has also been issued, beginning in 2020, to people infected with the COVID-19 virus. This included people suspected of having had contact with carriers of the virus.
