Spinner takes five-for as Essex resistance is worn away on final day