[PATCH 5/5] server: Use a simple boolean to track whether the async has been terminated.