window stuff

* save media library window position
* close all windows if main window was closed