Issue 4800 deleting a host can throw error