Changing the order of the exit process