An Unlearning Framework for Continual Learning