remove temp directory if processing succeeded