A controversial defeat for Manchester United proved to be the final straw for now-former manager Erik ten Hag.