runtime: convert panic calls to runtime Error calls.