Fixed server stopping on uncaught errors.