Optimal Stopping for Actuarial Use: A Study on Unemployment Insurance Schemes