Coroutine must be removed from death queue before closing connection

Or else a race condition might happen if using scheduler other than the
x86-64 scheduler (which might make a new connection land in another
thread).