runtime: Add support for emergency exceptions