The right frame of mind

Why do some people with mental health issues feel marginalised by the Church, and what can we do to correct that?