Bishop nearly quit in gay row