Better zprof logging & fix RuntimeError on non-existing obj