[BUGFIX] Endless loop when listening socket is already in use