Resetting values if the connection to the farm gets closed