catch notification errors and log them