close channel once a read operation completed