Generic stream reconnection module.