Check parent window is not closed before trying to update.
Authored by: b_calderwood 2011-10-04
Parent: [r5583]
Child: [r5585]