Restore -o pipefail with new method to get ID via inspect