Dispersing the Gaseous Protoplanetary Disk and Halting Type II Migration