Catch some exceptions. Add some debug output.