Wrapped some calls that could fail in try blocks.