somewhat removed error messages after closing