Close socket in Zeroconf class in all cases

This avoids "leaking" the file descriptors in case several instances are active at the same moment and close() is called in succession on all of them.