emit failed for all kinds of socket error