The Church has actually failed miserably  at 'handling' sex given the 'real mess of things'.  The Church's big mistake was insisting sexuality was not an integrated part of our personalities, but just a series of right and wrong individual sexual acts.  This is not just harmful to GLBT, but it's just as devastating for heterosexuals, especially women.