Handle a number of uncaught exceptions in the xmpp code.