[PATCH v2 1/6] server: Improve APC error handling when alloc_handle fails.