should raise error when finished