Fixes #1, drop shadowed by socket close + typos.