Remove temporary file when there is no activity

Previously, when there was no activity to export, the file was only
copied to the archive location and not deleted from the temporary
location.  The temporary file is now deleted.