Removes logged error messages