kjella:
I have the exact same problem. I am adding the control dynamically to the page where there are alot of other controls.
Sometimes it finishes and sometimes it stops on 1 second remaining.
I figured out my problem, it was related to a session that ran out of time. Seems to work like a charm now.