Fix crash when |accept()| fails to create socket.