A Port Huron man who has spent nearly a decade behind bars is on the verge of freedom as a prosecutor moves to drop a rape case against him.