Fixed a bug where viewlog error wouldn't close with the X button being pressed