Added error on listen and serve.