if panel open progress bar stays ..else application exit

if panel open
progress bar stays ..
else application exits