reformatted, non-closed sockets on error cases