How do I get good sustain?

I've forced my band to play the song Good Morning, Captain by Slint, but I believe I may have been underprepared for the ending. How do I get my guitar to sustain for twenty seconds, like in the ending?