fix NPE.
Added Cleanup method to Host.