Fixing a tp bug preventing channels from closing