Fixed overcommittal bug in recovery.

If a task attempts to use more than the available resources at recovery,
terminate it.