Unemployment Insurance with Moral Hazard in a Dynamic Economy