Guard against exceptions