Clean up getPuzzle by closing the network