close emulate_parameter mode and open errormode