refactoring
uwt: fix, cleanup temporary file on exit