Make sure shutdown sockets after use