{
{   The purpose of this request is to establish a procedure that
{ will receive control after a task has called PMP$EXIT or
{ PMP$ABORT but before it is actually terminated by the system.
{ The procedure that has been established will typically
{ perform any cleanup activities that are required before the
{ task actually terminates.
{
{ This task end handler remains in effect until the task
{ terminates or until it is explicitly disestablished.  The
{ lifetime of the end handler is not associated with the lifetime
{ of its caller as in the case of PMP$ESTABLISH_CONDITION_HANDLER.
{
{ An end handler established with this request will only be called
{ after the program executed by the task has completed; it is not
{ involved in the normal condition processing algorithm.  The end
{ handler executes in the ring specified by the ring parameter with
{ which it was established.  The specified ring cannot be more
{ privileged than the ring of the caller.
{
{ When the end handler is called, it may finish by returning or by
{ calling PMP$EXIT or PMP$ABORT; in all cases task termination
{ proceeds.  The task termination status is passed as a parameter to
{ the end handler so that it can determine the condition that
{ caused the task to terminate.
{
{ End handlers established by this procedure are queued according
{ to the ring specified by the caller along with other end
{ handlers established for the same ring.  Within a ring they
{ will be called in the order in which they were established;
{ that is, the end handler that was established first is called
{ first.  If end handlers are established in multiple rings, the
{ end handlers in the least privileged rings will be called first.
{ These end handlers are always called if still established at task
{ termination whether the task terminated normally or abnormally.
{
{ This request differs from PMP$ESTABLISH_END_HANDLER only in that
{ it allows a ring different than the caller's ring to be specified
{ as the ring in which the end handler will execute.
{
{ Block-exit condition handlers that are still established at
{ task termination time are called before any end handlers are
{ called.
{
{ Files with user FAP's established in the end handler's ring that
{ are left open at task termination will still be open when
{ the end handler is called but will be closed by the system
{ before end handlers for more privileged rings are called.
{
{       PMP$ESTABLISH_END_HNDLR_IN_RING (END_HANDLER, RING,
{           STATUS)
{
{ END_HANDLER: (input) This parameter specifies the user's
{       task end handler.
{
{ RING: (input) This parameter specifies the ring in which the
{       task end handler is to be established.
{
{ STATUS: (output) This parameter specifies the request status.
{       CONDITIONS:
{             pme$handler_more_privileged
{             pme$handler_nested_proc
{             pme$handler_queue_error
{
