aeron-driver/src/main/java/io/aeron/driver/MediaDriver.java
public void close()
    {
        CloseHelper.close(sharedRunner);
        CloseHelper.close(sharedNetworkRunner);
        CloseHelper.close(receiverRunner);
        CloseHelper.close(senderRunner);
        CloseHelper.close(conductorRunner);
        CloseHelper.close(sharedInvoker);

        if (ctx.useWindowsHighResTimer() && SystemUtil.osName().startsWith("win"))
        {
            if (!wasHighResTimerEnabled)
            {
                HighResolutionTimer.disable();
            }
        }
    }
public void close()
    {
        CloseHelper.close(sharedRunner);
        CloseHelper.close(sharedNetworkRunner);
        CloseHelper.close(receiverRunner);
        CloseHelper.close(senderRunner);
        CloseHelper.close(conductorRunner);
        CloseHelper.close(sharedInvoker);

        if (ctx.useWindowsHighResTimer() && SystemUtil.osName().startsWith("win"))
        {
            if (!wasHighResTimerEnabled)
            {
                HighResolutionTimer.disable();
            }
        }
    }
Shutdown the media driver by stopping all threads and freeing resources.