Fix an exception a client logout