More error resilience when logging success/failure of prints