fixed #891 - added code to close upgrade report when upgrade dialog is shown