@Override
    protected void process_reaped ()
    {
        --sockets;

        //  If reaped was already asked to terminate and there are no more sockets,
        //  finish immediately.
        if (sockets == 0 && terminating) {
            send_done ();
            poller.rm_fd (mailbox_handle);
            poller.stop ();
            
        }
    }