added F4 to quit function to EMC for parity with UD