vfs: handle read/write exceptions properly.
vfs: ignore vfs close to be able to reopen files
vfs: add support for preopening arbitrary files
Use tmpfile handle to pass temp data on reload/crash