AE: Changed MDQ_RunTime_eor to be a begin-of-run function so that alcapana will quit at the start of a run. NB this is a very messy way of quitting that I am not happy with so will change it when I work out how...