Make sure accepted sockets are properly closed