Fixed client exit.