adds terminate flightmode to events.pde