Flow stops when using FILE node

When you say 'the variables disappear' what do you mean?
What variables?
Where do they dissapear?
and what do you mean by 'when I do not have a FILE node in my flow' Are you removing the node?
Are you using persistant storage for your context variables?
(here is something to read A guide to understanding 'Persistent Context')