make TcpService extends Closeable