wait for the transition to (really) finish before emiting the 'end' event