try to prevent leaking file descriptors on writing service results
try to prevent leaking file descriptors on writing service results

dginev/CorTeX,dginev/CorTeX,dginev/rust-cortex,dginev/rust-cortex,dginev/CorTeX