Fix copyLoop to break out the other goroutine on graceful exit.

This should fix sockets getting stuck in CLOSE_WAIT.