Fixed showing errors of closed files