Delete the orphan site in sharepoint 2010

Scenario:
 
I have started a 10GB site restore using powershell command. It was almost in its finishing stage, mistakenly someone from the team closed the powershell window which lead to orphan site in sharepoint 2010. I followed various approaches to remove the orphaned site, but nothing worked. it resulted in below error,
"<nativehr>0x80070003</nativehr><nativestack></nativestack>"
 
Later I found I was able to get the site ID, then I used the below commands which deleted the orphan site
 
$site = Get-SPSite http://siteurl
$siteId = $site.Id
$siteDB = $site.ContentDatabase 
$siteDB.ForceDeleteSite($siteId, $false, $false)