Cleanup temp files produced when errors occur