Set the host type in #update, and set it back if the update fails