Saving files when they are deleted is less hacky now.

There is no more `@onExit`, which is far cleaner.

Fixes issue #16. For some reason, the `window.on 'beforeunload'` was
causing the issue.