Space 1999

Nuclear waste stored on the Moon’s far side explodes, knocking the Moon out of orbit and sending it, as well as the 311 inhabitants of Moonbase Alpha, hurtling uncontrollably into space.