Exception thrown on destruct