rem: StripIntuiMessages( win->UserPort, win );
add: StripIntuiMessagesAHI( win->UserPort, win );
context: static void CloseWindowSafely( struct Window *win ){    /* we forbid here to keep out of race conditions with Intuition */    Forbid();    /* send back any messages for this window      * that have not yet been processed     */    StripIntuiMessages( win->UserPort, win );    /* clear UserPort so Intuition will not free it */    win->UserPort = NULL;    /* tell Intuition to stop sending more messages */    ModifyIDCMP( win, 0L );    /* turn multitasking back on */    Permit();    /* and really close the window */    CloseWindow( win );}