Add debug messages and exception handling to stack dump handler

This method is getting complex and error prone.  Don't let it
stop the main thread.

Change-Id: I7715134bb3996feb8672ccf18002b05204cf54fa
1 file changed