[PATCH 1/4] server: Always cancel async on thread exit if process handles are closed.