Terminating and restarting thread that is mid-write to RAM0 filesystem has issues

Using NET+OS with ConnectME part. I have a thread that is using fopen, fwrite, fseek. I terminate and restart the thread. Once I do that, the new thread deletes the file from RAM0 (using the old filepointer). Once it starts reading and writing to the new file, it will crash. It either crashes the restarted thread or the MEDIA0 thread. Not sure of the correlation. Is there a way to delete/re-init the RAM0 filesystem, or do anything to help this problem.
Thanks in advance.