Set return code before closing a window in Utils.closeDialogs()

Signed-off-by: Viktoria Dlugopolskaya <viksnsk@gmail.com>
Change-Id: I44f9639c4a7c1e5b1ce2f020f5138696b09767ed
2 files changed