Destroy Event

function emulation.desroy(e)
  -- called when emulation closes or aborts
end
Warning

Maximum run time for this callback is 1 second.