fixed ECONRESET and logging bug

hopefully...