Make sure server doesn't crash on uncaught exceptions