Added more error checking code to migratecfg