socket error if serverstart  is executed immediately after serverstop