Exit client if server closed the connection.