Avoid using catch as it is not part of the A+ spec.