be2c5e66f4
Clean `Input::frame_parsed_events` before de-initialising scripting languages to ensure no script created events exist at the exit.