Bug 962040 - Catch errors to not break the JSON output

Also make sure VERBOSE is sent to stderr.

Add more verbosity to track where it might hang.