Always remove task file, even on error