log host on error/close