Logger replacement
Remove socket when tests are done