Fix references to exceptions from the RTS