BZ-1051769: fix for port already in use issue