stopServer closes serverSocket and sets running to false