Remove temporary files when they are no longer needed