catch out-of-memory errors so that they don't block the feature calculations