Pay quits as NRL coach of the Bulldogs