cleanup client class