graceful shutdown when gstreamer element sends ERROR message
The online analysis was seeing a hang when handling ERROR messages sent by gstreamer elements.
In particular, the devshm element sends an ERROR message when no data is present after a timeout.
This patch fixes the hang and adds shutdown debugging messages that are NOT gated by --verbose.