Oddbins has moved to secure its future by closing 39 stores across the UK.