improved fix closing of sockets

- code improved
- close socket at the end of the tests
- documentation updated
release preparation
Merge pull request #1 from und3f/master

sync upstream