Fix double elimination tournament bug and improve unexpected error reporting