How long close waits for the socket to finish closing.
@visibleForTesting static const closeBound = Duration(seconds: 2);