The ultimate object of distilling gin? (6)

I believe the answer is:
ending
'distilling gin?' is the definition.
I can't judge whether this defines the answer.
'the ultimate object' is the wordplay.
'the ultimate' becomes 'end' (I've seen this in another clue).
'object' becomes 'ing' (I can't explain this - if you can you should believe this answer much more).
'end'+'ing'='ENDING'
'of' acts as a link.
Can you help me to learn more?
(Other definitions for ending that I've seen before include "Stopping" , "Putting a stop to" , "Gin den (anag.)" , "Finale" , "ultimately" .)
