Dialog visibility bug fix.

Force dialog close when dialog is visible and player press play button.