Fix crash when active closing sockets
Fix acceptor: do not crash on closed socket when setting opts If the socket (port) is closed (by client) before sending any data, acceptor may crash when setting active option. In this commit, the error posix code is captured and logged, then acceptor can stop.