Suggestions on Apex failsafe programming ?