Fixed select, socket, tls error handler regression