add function to close current window.
Merge branch 'master' of https://github.com/evotech/MarexPOC