delete tmp file on exit, and in cleanup