A motion to withdraw a plea of guilty or nolo contendere may be made only before sentence is imposed or imposition of a sentence is suspended; but to correct manifest injustice, the court within twenty-one days after entry of a final order may set aside the judgment of conviction and permit the defendant to withdraw his plea.
Va. Code § 19.2-296