Dispose channel after thread ended