Main window can be closed now. No idea why.