If FlexEngine cannot access the profile archive directory at login or is for some reason not invoked, FlexEngine does not run at logout, as that overwrites the personalized user settings. You can change this functionality by using the -F switch from the command line arguments.