Minor improvements

* Only process if find a `panwrap_` block
* Catch errors and reset running status