don't trigger connection closed on read and write goroutines