Close nextReader on socket close.
Return initialized upgrades array.