simplify connection error emission in socket space