Fixed double closing of ports for one consoles.
mErge branch 'test' into dev