Added basic logging, window does not close