flag exit