server: Cancel socket asyncs when the last handle in process is closed.