tweak refcounting of shared libraries to match example
forcing yarpbroker to close the communication port after each intraction with the yarprun