COYNE, Justice.
In Kim v. State, 426 N.W.2d 487 (Minn.App.1988), the court of appeals reversed an order of the district court denying defendant, Joon Kyu Kim, post-conviction relief from a sexual assault conviction based on a guilty plea. The court of appeals ruled that denial of defendant’s motion to withdraw his guilty plea, made before sentence was imposed, constituted an abuse of discretion. We reverse the court of appeals and reinstate the judgment of conviction and the order denying post-conviction relief.
In 1984, at the time of the offense to which he pleaded guilty, defendant was an officer of the Bemis Corporation specializing in international taxation. He also owned an apartment complex in St. Paul. The victim, D.H., was the wife of the caretaker. She alleged that.defendant forcibly penetrated her, gave her $20, told her that the next time it would be $30, and warned her against talking to the police. Questioned by the police, defendant denied having had sexual intercourse with D.H., claiming instead that she made the complaint to get revenge for being fired.
The state charged defendant with two felonies, criminal sexual conduct in the third and fourth degrees, Minn.Stat. §§ 609.344, subd. 1(c) and 609.345, subd. 1(c) (Supp.1987) (accomplishing sexual penetration/contact by use of force or coercion). The case was initially before the court of appeals and then this court on a pre-trial appeal dealing with the admissibility of expert testimony concerning blood test results linking defendant to semen found at the scene of the alleged rape. See State v. Kim, 374 N.W.2d 814 (Minn.App.1985), aff'd, 398 N.W.2d 544 (Minn.1987).
On remand the case came on for trial on June 16, 1987. After two jurors were selected the prosecutor and defense counsel reached an agreement that if defendant would plead guilty to the lesser of the two charges he would receive a gross misdemeanor sentence, meaning that under Minn.Stat. § 609.13, subd. 1 (1986), the felony conviction would be deemed to be a gross misdemeanor conviction. Defendant accepted the agreement, signed a formal petition to plead guilty, and orally entered his plea in open court. The prosecutor and defense counsel questioned defendant thoroughly about his knowledge of the rights he was waiving, the voluntariness of the plea, and his understanding that if the trial court did not agree that gross misdemean- or sentencing was appropriate, the plea would be vacated and the matter reinstated for trial. Defendant expressly admitted under oath that he forcibly penetrated D.H. as she claimed. The trial court asked defendant if he wanted the court to accept the plea, defendant said “Yes,” and the trial court said, “Very well” and set the case for sentencing on July 29 following the sentence investigation.
It appears that when Bemis’ corporate counsel learned of the plea he told defendant he would have to resign his job as an officer because, despite Minn.Stat. § 609.13, under which a felony conviction is deemed to be a gross misdemeanor conviction, he had been convicted of a felony charge. Although defendant resigned, he was immediately given a permanent consulting contract with Bemis. According to a company employee to whom the probation agent talked, defendant in this capacity continued to work at Bemis headquarters on a daily basis as before. De