I reworked this to have the connection pay attention to the context.  With connections closing quickly we can let shutdown happen gracefully and remove the 10 second timeout.  Shutdown will block which prevents the accumulator from going away while the connection needs it, so the panic should still be prevented.