# File lib/msf/core/exploit/tcp.rb, line 118
        def handler(nsock = self.sock)
                # If the handler claims the socket, then we don't want it to get closed
                # during cleanup
                if ((rv = super) == Handler::Claimed)
                        if (nsock == self.sock)
                                self.sock = nil
                        end

                        # Remove this socket from the list of sockets so that it will not be
                        # aborted.
                        sockets.delete(nsock)
                end

                return rv
        end