Close transport and disconnect peers right in the Shutdown(), so that no new connections would be accepted and so that all the peers would be disconnected correctly (avoiding the same deadlock as in e2116e4c3f).
e2116e4c3f