Deleting the host will make pH a dangling pointer, so remove it from mTabMap first.
Merge pull request #13 from ahmedcharles/host_fix

Deleting the host will make pH a dangling pointer, so remove it from mTabMap first.