Socket abstraction layer & minor tweaks to group logging