Avoid calling InetAddress.getLocalHost() that can be very slow. Exact connection or disconnection string isn't relevant for tests anyway.
Otherwise linenumber for previous instruction will be used in debugger. That can lead to error stepping because it might be line that isn't reachable on current iteration. #KT-13059 Fixed