Monkey patch more of rails to deal with broken upstream reconnect logic.