So you can do the way I did

I've installed 'wmctrl' package and created panel launcher with command:
wmctrl -c :ACTIVE:
and placed it at right-top corner of screen.
It closes active window.
Enjoy

Source (link to git-repo or to original if based on someone elses unmodified work):
Ratings & Comments
2 Comments
MHE HPABUTCR.
C||ACNbO