remove non-rt-safe exception handling