core: remove temp file when done with box