migration: Don't leak IO channels