Commented out exception handling code since these routines are not called from Ada tasks. It is questionable whether the exception handling would work correctly.