fix(socket): destroy socket handle on _any_ error