pub fn register(handler: ExceptionHandler) -> SgxResult<Handle>