added call to logout on client create to clear out any remnant token