RiskInput is now a context manager