fix Host.close(): check storage is defined before closing it