improve fsm cleanup logging by having it log after the cleanup