Impose a time limit on factorial calculations.