EUCA-7933

Missing the cleanup call when closing the previous dialog.