Panel close report

Added a feature for closing the panel and that it reports it to
external gui
ui minor
Merge branch 'feature/record_video' into feature/working-branch