fix 5671, 5569
- Enable close command to close custom viewer,
- close image on project close.
add comment
Merge pull request #5702 from adobe/couzteau/fix-5671-5569-updated

fix 5671, 5669