Fixed socket bug on 2nd line hangup, minor tweaks.