fixed closing window crash, thanks Philipp!