Framework for Fault Tolerance in Grid Environments