Cleanup has been moved to a separate methos cleanup() so the extednign module could opt to delete the temp files