stop retrying to connect after 10 retries; bugfix: 2 sockets opened for each closed socket
tojs namespace now global access to modifying the model