made ClientService extend java.io.Closeable